using System;
using digit.Core;
using System.Data;

namespace SMS.SportService
{
    public class ServiceSportsInfo
    {
        #region CONSTRUCTORS
        public ServiceSportsInfo()
        {

            this.m_serviceSportId = Util.NULL_LONG;
            this.m_cmd1 = Util.NULL_STRING;
            this.m_cmd2 = Util.NULL_STRING;
            this.m_code1 = Util.NULL_STRING;
            this.m_code2 = Util.NULL_STRING;
            this.m_param1 = Util.NULL_STRING;
            this.m_param2 = Util.NULL_STRING;
            this.m_param3 = Util.NULL_STRING;
            this.m_param4 = Util.NULL_STRING;
            this.m_param5 = Util.NULL_STRING;
            this.m_param6 = Util.NULL_STRING;
            this.m_content1 = Util.NULL_STRING;
            this.m_content2 = Util.NULL_STRING;
            this.m_content3 = Util.NULL_STRING;
            this.m_content4 = Util.NULL_STRING;
            this.m_content5 = Util.NULL_STRING;
            this.m_content6 = Util.NULL_STRING;
            this.m_msgType = Util.NULL_BYTE;
            this.m_contentType = Util.NULL_BYTE;
            this.m_numOfMsg = Util.NULL_BYTE;
            this.m_processType = Util.NULL_BYTE;
            this.m_serviceId = Util.NULL_STRING;
            this.m_createdBy = Util.NULL_STRING;
            this.m_createdDate = Util.NULL_DATETIME;
            this.m_status = Util.NULL_BYTE;
        }

        public ServiceSportsInfo(long serviceSportId, string code1, string code2, string param1, string param2, string param3, string param4, string param5, string param6, string content1, string content2, string content3, string content4, string content5, string content6, byte msgType, byte contentType, byte numOfMsg, byte processType, string serviceId, string createdBy, DateTime createdDate, byte status)
        {

            this.m_serviceSportId = serviceSportId;
            this.m_code1 = code1;
            this.m_code2 = code2;
            this.m_param1 = param1;
            this.m_param2 = param2;
            this.m_param3 = param3;
            this.m_param4 = param4;
            this.m_param5 = param5;
            this.m_param6 = param6;
            this.m_content1 = content1;
            this.m_content2 = content2;
            this.m_content3 = content3;
            this.m_content4 = content4;
            this.m_content5 = content5;
            this.m_content6 = content6;
            this.m_msgType = msgType;
            this.m_contentType = contentType;
            this.m_numOfMsg = numOfMsg;
            this.m_processType = processType;
            this.m_serviceId = serviceId;
            this.m_createdBy = createdBy;
            this.m_createdDate = createdDate;
            this.m_status = status;
        }

        public ServiceSportsInfo(DataRow dRow)
        {

            this.m_serviceSportId = (long)Util.ReplaceDBNullTo(dRow["serviceSportId"], Util.NULL_LONG);
            this.m_cmd1 = Util.ReplaceDBNullTo(dRow["cmd1"], Util.NULL_STRING).ToString();
            this.m_cmd2 = Util.ReplaceDBNullTo(dRow["cmd2"], Util.NULL_STRING).ToString();
            this.m_code1 = Util.ReplaceDBNullTo(dRow["code1"], Util.NULL_STRING).ToString();
            this.m_code2 = Util.ReplaceDBNullTo(dRow["code2"], Util.NULL_STRING).ToString();
            this.m_param1 = Util.ReplaceDBNullTo(dRow["param1"], Util.NULL_STRING).ToString();
            this.m_param2 = Util.ReplaceDBNullTo(dRow["param2"], Util.NULL_STRING).ToString();
            this.m_param3 = Util.ReplaceDBNullTo(dRow["param3"], Util.NULL_STRING).ToString();
            this.m_param4 = Util.ReplaceDBNullTo(dRow["param4"], Util.NULL_STRING).ToString();
            this.m_param5 = Util.ReplaceDBNullTo(dRow["param5"], Util.NULL_STRING).ToString();
            this.m_param6 = Util.ReplaceDBNullTo(dRow["param6"], Util.NULL_STRING).ToString();
            this.m_content1 = Util.ReplaceDBNullTo(dRow["content1"], Util.NULL_STRING).ToString();
            this.m_content2 = Util.ReplaceDBNullTo(dRow["content2"], Util.NULL_STRING).ToString();
            this.m_content3 = Util.ReplaceDBNullTo(dRow["content3"], Util.NULL_STRING).ToString();
            this.m_content4 = Util.ReplaceDBNullTo(dRow["content4"], Util.NULL_STRING).ToString();
            this.m_content5 = Util.ReplaceDBNullTo(dRow["content5"], Util.NULL_STRING).ToString();
            this.m_content6 = Util.ReplaceDBNullTo(dRow["content6"], Util.NULL_STRING).ToString();
            this.m_msgType = (byte)Util.ReplaceDBNullTo(dRow["msgType"], Util.NULL_BYTE);
            this.m_contentType = (byte)Util.ReplaceDBNullTo(dRow["contentType"], Util.NULL_BYTE);
            this.m_numOfMsg = (byte)Util.ReplaceDBNullTo(dRow["numOfMsg"], Util.NULL_BYTE);
            this.m_processType = (byte)Util.ReplaceDBNullTo(dRow["processType"], Util.NULL_BYTE);
            this.m_serviceId = Util.ReplaceDBNullTo(dRow["serviceID"], Util.NULL_STRING).ToString();
            this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
            this.m_createdDate = (DateTime)Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
            this.m_status = (byte)Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
        }
        #endregion

        #region ATTRIBUTES
        private long m_serviceSportId;
        private string m_cmd1;
        private string m_cmd2;
        private string m_code1;
        private string m_code2;
        private string m_param1;
        private string m_param2;
        private string m_param3;
        private string m_param4;
        private string m_param5;
        private string m_param6;
        private string m_content1;
        private string m_content2;
        private string m_content3;
        private string m_content4;
        private string m_content5;
        private string m_content6;
        private byte m_msgType;
        private byte m_contentType;
        private byte m_numOfMsg;
        private byte m_processType;
        private string m_serviceId;
        private string m_createdBy;
        private DateTime m_createdDate;
        private byte m_status;
        #endregion

        #region PROPERTIES
        public long ServiceSportID
        {
            get
            {
                return this.m_serviceSportId;
            }
            set
            {
                this.m_serviceSportId = value;
            }
        }

        public string Cmd1
        {
            get
            {
                return this.m_cmd1;
            }
            set
            {
                this.m_cmd1 = value;
            }
        }

        public string Cmd2
        {
            get
            {
                return this.m_cmd2;
            }
            set
            {
                this.m_cmd2 = value;
            }
        }

        public string Code1
        {
            get
            {
                return this.m_code1;
            }
            set
            {
                this.m_code1 = value;
            }
        }

        public string Code2
        {
            get
            {
                return this.m_code2;
            }
            set
            {
                this.m_code2 = value;
            }
        }

        public string Param1
        {
            get
            {
                return this.m_param1;
            }
            set
            {
                this.m_param1 = value;
            }
        }

        public string Param2
        {
            get
            {
                return this.m_param2;
            }
            set
            {
                this.m_param2 = value;
            }
        }

        public string Param3
        {
            get
            {
                return this.m_param3;
            }
            set
            {
                this.m_param3 = value;
            }
        }

        public string Param4
        {
            get
            {
                return this.m_param4;
            }
            set
            {
                this.m_param4 = value;
            }
        }

        public string Param5
        {
            get
            {
                return this.m_param5;
            }
            set
            {
                this.m_param5 = value;
            }
        }

        public string Param6
        {
            get
            {
                return this.m_param6;
            }
            set
            {
                this.m_param6 = value;
            }
        }

        public string Content1
        {
            get
            {
                return this.m_content1;
            }
            set
            {
                this.m_content1 = value;
            }
        }

        public string Content2
        {
            get
            {
                return this.m_content2;
            }
            set
            {
                this.m_content2 = value;
            }
        }

        public string Content3
        {
            get
            {
                return this.m_content3;
            }
            set
            {
                this.m_content3 = value;
            }
        }

        public string Content4
        {
            get
            {
                return this.m_content4;
            }
            set
            {
                this.m_content4 = value;
            }
        }

        public string Content5
        {
            get
            {
                return this.m_content5;
            }
            set
            {
                this.m_content5 = value;
            }
        }

        public string Content6
        {
            get
            {
                return this.m_content6;
            }
            set
            {
                this.m_content6 = value;
            }
        }

        public byte MsgType
        {
            get
            {
                return this.m_msgType;
            }
            set
            {
                this.m_msgType = value;
            }
        }

        public byte ContentType
        {
            get
            {
                return this.m_contentType;
            }
            set
            {
                this.m_contentType = value;
            }
        }

        public byte NumOfMsg
        {
            get
            {
                return this.m_numOfMsg;
            }
            set
            {
                this.m_numOfMsg = value;
            }
        }

        public byte ProcessType
        {
            get
            {
                return this.m_processType;
            }
            set
            {
                this.m_processType = value;
            }
        }

        public string ServiceID
        {
            get
            {
                return this.m_serviceId;
            }
            set
            {
                this.m_serviceId = value;
            }
        }

        public string CreatedBy
        {
            get
            {
                return this.m_createdBy;
            }
            set
            {
                this.m_createdBy = value;
            }
        }

        public DateTime CreatedDate
        {
            get
            {
                return this.m_createdDate;
            }
            set
            {
                this.m_createdDate = value;
            }
        }

        public byte Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion

    }
}